package campus.aiit.ssl.dao;

import campus.aiit.ssl.domain.model.Week;
import campus.aiit.ssl.manage.custom.dao.BaseDao;
import campus.aiit.ssl.manage.custom.dao.DaoResultCheck;

import java.util.List;
import java.util.Map;

/**
 * @author ihaokun
 * @date 2019/12/24 9:07
 */
public interface WeekDao extends BaseDao<Week> {
  @Override
  int insertSelective(Week record);
  @Override@DaoResultCheck
  int updateByPrimaryKeySelective(Week record);

  List<Week> selectByForeignKey(long strategyId);

  int deleteByForeignKey(long strategyId);

  List<Map<String,Object>> getStrategyByTypeId(long deviceTypeId);

  int delCurrencyStrategy(long id);

  int updateCurrencyStrategy(Map map);

  int addCurrencyStrategy(Map map);

}